package com.chj.constant;


public class Rabbit {
	public static final String KEY_ERROR_CODE = "error_code";
	public static final String KEY_ERROR_MSG = "error_msg";
	
	public static final String CODE_OK = "200";
	public static final String MSG_OK = "OK";
	public static final String CODE_ERROR = "500";
	public static final String CODE_ERROR_BAD_REQUEST = "400";
	
	public static final String DEL_FLAG_VALID = "1";
	public static final String DEL_FLAG_DELETED = "0";
	
	public static final String REGISTER = "REGISTER";
	public static final String UNREGISTER = "UNREGISTER";
	
	public static final String KEY_LISTENER_CONTAINER = "LISTENER_CONTAINER_";
	public static final String CONNECTION_FACTORY = "rabbitMqConnectionFactory";
	public static final String RABBIT_TEMPLATE = "rabbitTemplate";
	public static final String VH_TRJR = "vh_trjr";
	/** 消息处理结果标记，ACK,NACK,REJECT等 **/
	public static final String MSG_ACK_FLAG = "MSG_ACK_FLAG";
	public static final String MSG_ACK_FLAG_ACK = "ACK";
	public static final String MSG_ACK_FLAG_NACK = "NACK";
	public static final String MSG_ACK_FLAG_REJECT = "REJECT";
	
	public static class CommandMsg{
		public static final String IP = "ip";
		public static final String CONTAINER_NAME = "containerName";
		public static final String COMMAND = "command";
	}
	
	public static class JsonKey{
		public static final String ERROR_MSG = "errorMsg";
		public static final String EXCHANGE = "exchange";
		public static final String ROUTING_KEY = "routingKey";
		public static final String MESSAGE = "msg";
		public static final String MESSAGE_BODY = "MESSAGE_BODY";
		public static final String MESSAGE_HEAD = "MESSAGE_HEAD";
		public static final String CREATE_DATE = "createDate";
		public static final String HANDLE_DATE = "handleDate";
		public static final String UUID = "uuid";
		public static final String REPLY_TEXT = "replyText";
		public static final String REPLY_CODE = "replyCode";
		
		public static final String NAME = "name";
		public static final String QUEUE = "queue";
		public static final String NOTIFY_URL = "notifyUrl";
		public static final String REMARKS = "remarks";
		public static final String PAGE_SIZE = "pageSize";
		public static final String PAGE_INDEX = "pageIndex";
		public static final String MESSAGE_TYPE = "msgType";
		public static final String HANDLED = "handled";
		public static final String THREAD_COUNT = "threadCount";
	}
	
	public static class Funds{
		public static final String EX_FUNDS = "ex_funds";	
		
		/** 标的转让成功 RoutingKey**/
		public static final String RK_FUNDS_BIAODIZHUANRANG_SUCCESS = "trjr.funds.biaodizhuanrang.success";
		/** 标的转让成功 Queue **/
		public static final String QU_FUNDS_BIAODIZHUANRANG_SUCCESS = "qu_funds_biaodizhuanrang_success";
		/** 标的转让成功 Listener **/
		public static final String LS_FUNDS_BIAODIZHUANRANG_SUCCESS = "ls_funds_biaodizhuanrang_success";
		/** 标的转让成功 ListnerContainer **/
		public static final String LC_FUNDS_BIAODIZHUANRANG_SUCCESS = "lc_funds_biaodizhuanrang_success";
		
		/** 标的转让失败 RoutingKey**/
		public static final String RK_FUNDS_BIAODIZHUANRANG_FAIL = "trjr.funds.biaodizhuanrang.fail";
		/** 标的转让失败 Queue **/
		public static final String QU_FUNDS_BIAODIZHUANRANG_FAIL = "qu_funds_biaodizhuanrang_fail";
		/** 标的转让失败 Listener **/
		public static final String LS_FUNDS_BIAODIZHUANRANG_FAIL = "ls_funds_biaodizhuanrang_fail";
		/** 标的转让失败 ListnerContainer **/
		public static final String LC_FUNDS_BIAODIZHUANRANG_FAIL = "lc_funds_biaodizhuanrang_fail";
		
		/** 提现成功 RoutingKey**/
		public static final String RK_FUNDS_WITHDRAW_SUCCESS = "trjr.funds.withdraw.success";
		/** 提现成功 Queue **/
		public static final String QU_FUNDS_WITHDRAW_SUCCESS = "qu_funds_withdraw_success";
		/** 提现成功 Listener **/
		public static final String LS_FUNDS_WITHDRAW_SUCCESS = "ls_funds_withdraw_success";
		/** 提现成功 ListnerContainer **/
		public static final String LC_FUNDS_WITHDRAW_SUCCESS = "lc_funds_withdraw_success";
	}
	
	public static class Bill {
		public static final String EX_BILL = "ex_bill";
		/** 生成还款账单 RoutingKey**/
		public static final String RK_BILL_REPAY_CREATE = "trjr.bill.repay.create";
		/** 生成还款账单 Queue **/
		public static final String QU_BILL_REPAY_CREATE = "qu_bill_repay_create";
		/** 生成还款账单 Listener **/
		public static final String LS_BILL_REPAY_CREATE = "ls_bill_repay_create";
		/** 生成还款账单 ListnerContainer **/
		public static final String LC_BILL_REPAY_CREATE = "lc_bill_repay_create";
		
		/** 还款成功 RoutingKey **/
		public static final String RK_BILL_HUANKUAN_SUCCESS = "trjr.bill.huankuan.success";
		/** 还款成功 Queue **/
		public static final String QU_BILL_HUANKUAN_SUCCESS = "qu_bill_huankuan_success";
		/** 还款成功 Listener **/
		public static final String LS_BILL_HUANKUAN_SUCCESS = "ls_bill_huankuan_success";
		/** 还款成功 ListnerContainer **/
		public static final String LC_BILL_HUANKUAN_SUCCESS = "lc_bill_huankuan_success";
		
	}
	
	public static class Contract {
		public static final String EX_CONTRACT = "ex_contract";
//		public static final String RK_CONTRACT_STATUS = "trjr.contract.status.";
//		public static final String QU_CONTRACT_STATUS = "qu_contract_status_";
		
	}
	
	public static class Dict {
		public static final String EX_DICT = "ex_dict";
//		public static final String RK_DICT_STATUS = "trjr.dict.status.";
//		public static final String QU_DICT_STATUS = "qu_dict_status_";
		
	}
	
	public static class Dts {
		public static final String EX_DTS = "ex_dts";
		/** DTS债权推送 **/
		public static final String RK_DTS_DEBT_CREATE = "trjr.dts.debt.create";
		public static final String QU_DTS_DEBT_CREATE = "qu_dts_debt_create";
		public static final String LS_DTS_DEBT_CREATE = "ls_dts_debt_create";
		public static final String LC_DTS_DEBT_CREATE = "lc_dts_debt_create";
		
		/** DTS债权推送时进行开户处理 **/
		public static final String RK_DTS_USER_CREATE = "trjr.dts.user.create";
		public static final String QU_DTS_USER_CREATE = "qu_dts_user_create";
		public static final String LS_DTS_USER_CREATE = "ls_dts_user_create";
		public static final String LC_DTS_USER_CREATE = "lc_dts_user_create";
		
		/** DTS债权推送时开户处理完成 **/
		public static final String RK_DTS_USER_CREATE_FINISH = "trjr.dts.user.createfinish";
		public static final String QU_DTS_USER_CREATE_FINISH = "qu_dts_user_createfinish";
		public static final String LS_DTS_USER_CREATE_FINISH = "ls_dts_user_createfinish";
		public static final String LC_DTS_USER_CREATE_FINISH = "lc_dts_user_createfinish";
		
		/** 将信息披露里面的还款能力变化通知DTS **/
		public static final String RK_DTS_REPAYABILITY_UPDATE = "trjr.dts.repayability.update";
		public static final String QU_DTS_REPAYABILITY_UPDATE = "qu_dts_repayability_update";
		public static final String LS_DTS_REPAYABILITY_UPDATE = "ls_dts_repayability_update";
		public static final String LC_DTS_REPAYABILITY_UPDATE = "lc_dts_repayability_update";
	}
	
	public static class Hzcms {
		public static final String EX_HZCMS = "ex_hzcms";
//		public static final String RK_HZCMS_STATUS = "trjr.hzcms.status.";
//		public static final String QU_HZCMS_STATUS = "qu_hzcms_status_";

	}
	
	public static class Loan {
		public static final String EX_LOAN = "ex_loan";
		/** 标的创建成功 **/
		public static final String RK_LOAN_ACTION_CREATE = "trjr.loan.action.create";
		public static final String QU_LOAN_ACTION_CREATE = "qu_loan_action_create";
		public static final String LS_LOAN_ACTION_CREATE = "ls_loan_action_create";
		public static final String LC_LOAN_ACTION_CREATE = "lc_loan_action_create";
		
		/** 标的流标 **/
		public static final String RK_LOAN_ACTION_LIUBIAO = "trjr.loan.action.liubiao";
		public static final String QU_LOAN_ACTION_LIUBIAO = "qu_loan_action_liubiao";
		public static final String LS_LOAN_ACTION_LIUBIAO = "ls_loan_action_liubiao";
		public static final String LC_LOAN_ACTION_LIUBIAO = "lc_loan_action_liubiao";
		
		/** 普通转让成功 RoutingKey **/
		public static final String RK_ORDINARY_TRANSFER_SUCCESS = "trjr.loan.ordinarytransfer.success";
		/** 普通转让成功 Queue **/
		public static final String QU_ORDINARY_TRANSFER_SUCCESS = "qu_loan_ordinarytransfer_success";
		/** 普通转让成功 Listener **/
		public static final String LS_ORDINARY_TRANSFER_SUCCESS = "ls_loan_ordinarytransfer_success";
		/** 普通转让成功 ListenerContainer **/
		public static final String LC_ORDINARY_TRANSFER_SUCCESS = "lc_loan_ordinarytransfer_success";

		/** 标的满标放款成功 RoutingKey **/
		public static final String RK_LOAN_FANGKUAN_SUCCESS = "trjr.loan.fangkuan.success";
		/** 标的满标放款成功 Queue **/
		public static final String QU_LOAN_FANGKUAN_SUCCESS = "qu_loan_fangkuan_success";
		/** 标的放款成功 Listener **/
		public static final String LS_LOAN_FANGKUAN_SUCCESS = "ls_loan_fangkuan_success";
		/** 标的放款成功 ListenerContainer **/
		public static final String LC_LOAN_FANGKUAN_SUCCESS = "lc_loan_fangkuan_success";
		
		/** 标的满标放款失败 RoutingKey **/
		public static final String RK_LOAN_FANGKUAN_FAIL = "trjr.loan.fangkuan.fail";
		/** 标的满标放款失败  Queue **/
		public static final String QU_LOAN_FANGKUAN_FAIL = "qu_loan_fangkuan_fail";
		/** 标的放款失败 Listener **/
		public static final String LS_LOAN_FANGKUAN_FAIL = "ls_loan_fangkuan_fail";
		/** 标的放款失败 ListenerContainer **/
		public static final String LC_LOAN_FANGKUAN_FAIL = "lc_loan_fangkuan_fail";		

		/** 标的提前结清 RoutingKey**/
		public static final String RK_LOAN_ACTION_TIQIANJIEQING = "trjr.loan.action.tiqianjieqing";
		/** 标的还款失败 Queue **/
		public static final String QU_LOAN_ACTION_TIQIANJIEQING = "qu_loan_action_tiqianjieqing";
		/** 标的还款失败 Listener **/
		public static final String LS_LOAN_ACTION_TIQIANJIEQING = "ls_loan_action_tiqianjieqing";
		/** 标的还款失败 ListenerContainer **/
		public static final String LC_LOAN_ACTION_TIQIANJIEQING = "lc_loan_action_tiqianjieqing";
		
	}
	
	public static class Message {
		public static final String EX_MESSAGE = "ex_message";
		public static final String RK_MESSAGE_SEND_MAIL = "trjr.message.send.mail";
		public static final String QU_MESSAGE_SEND_MAIL = "qu_message_send_mail";
		
	}
	
	public static class Order {
		public static final String EX_ORDER = "ex_order";
//		public static final String RK_ORDER_STATUS = "trjr.order.status.";
//		public static final String QU_ORDER_STATUS = "qu_order_status_";
		
	}
 
	public static class Tb {
		public static final String EX_Tb = "ex_tb";
//		public static final String RK_TB_STATUS = "trjr.tb.status.";
//		public static final String QU_TB_STATUS = "qu_tb_status_";
		
		
		
	}
	 
	public static class WrongLetter {
		// 发送错误的消息，放到这个地方进行二次处理
		public static final String EX_WRONG_LETTER = "ex_wrong_letter";
		public static final String RK_WRONG_LETTER = "trjr.wrong.letter";
		public static final String QU_WRONG_LETTER = "qu_wrong_letter";
		public static final String LS_WRONG_LETTER = "ls_wrong_letter";
		public static final String LC_WRONG_LETTER = "lc_wrong_letter";
	}
	 
	public static class DeadLetter {
		// 超时未处理的消息，放到这个地方进行处理
		public static final String EX_DEAD_LETTER = "ex_dead_letter";
		public static final String RK_DEAD_LETTER = "trjr.dead.letter";
		public static final String QU_DEAD_LETTER = "qu_dead_letter";
		public static final String LS_DEAD_LETTER = "ls_dead_letter";
		public static final String LC_DEAD_LETTER = "lc_dead_letter";
	}  
	
	public static class SysLog {
		public static final String EX_SYS_LOG = "ex_sys_log";
		// 系统日志
		public static final String RK_SYS_LOG = "trjr.sys.log";
		public static final String QU_SYS_LOG = "qu_sys_log";
		public static final String LS_SYS_LOG = "ls_sys_log";
		public static final String LC_SYS_LOG = "lc_sys_log";
		
		public static final String COLLECTION_NAME = "sys_log";
		public static final String MSG_TYPE_LOG = "log";
		public static final String MSG_TYPE_ERROR = "error";
	}  
	
	public static class SysCommand {
		public static final String EX_SYS_COMMAND = "ex_sys_command";		 
		// 系统指令
		public static final String QU_SYS_COMMAND = "qu_sys_command";
		public static final String BD_SYS_COMMAND = "bd_sys_command";
		public static final String LS_SYS_COMMAND = "ls_sys_command";
		public static final String LC_SYS_COMMAND = "lc_sys_command";
		public static final String COMMAND_START = "START";
		public static final String COMMAND_STOP = "STOP";
		public static final String COMMAND_INFO = "INFO";
		public static final String IP_ALL = "*.*.*.*";
	} 
}
